import gameMapState from '../states/map.js'
import gameStartState from '../states/start.js'
import gameStartPlay from '../states/gameMain.js'
import gameGuideState from '../states/guide.js'
import gameScoreState from '../states/score.js'
class Game extends Phaser.Game {
    constructor() {
      window.gameWidth = 750;
      window.gameHeight = 1334;
  
      super(window.gameWidth, window.gameHeight, Phaser.CANVAS, 'content', {
        init: function () {
            this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT;
        },
        create: function () {
          this.state.start('start')
        }
      }, true)
      this.state.add('start', gameStartState, false)
      this.state.add('play', gameStartPlay, false)
      this.state.add('map', gameMapState, false)
      this.state.add('guide', gameGuideState, false)
      this.state.add('score', gameScoreState, false)
    }
  }
  
  window.game = new Game()